From c407ef9d7fc403977eb5b4576bc4ac8b5a8dcdc5 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 8 Aug 2002 23:50:20 +0000 Subject: [PATCH] Allow global descriptors (as in Groundspeak example(. --- gpsbabel/gpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 743fe869c..6ee4e2a36 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -129,7 +129,7 @@ gpx_cdata(void *dta, const XML_Char *s, int len) if (in_name && in_wpt) { wpt_tmp->shortname = foo; } - if (in_desc) { + if (in_desc && in_wpt) { wpt_tmp->description = foo; } if (in_ele) { -- 2.30.2